package cn.org.timespace.ons.service.base;

import java.util.List;

import cn.org.timespace.ons.action.base.MachinesModel;
import cn.org.timespace.ons.util.ResultUtil;
import cn.org.timespace.ons.util.pager.Pager;
import cn.org.timespace.ons.vo.base.Machines;
import cn.org.timespace.ons.vo.base.Options;
import cn.org.timespace.ons.vo.base.UserMachineType;

public interface MachinesService {

	public List<Machines> findByCondition(MachinesModel model);
	
	public List<Object> findByCondition(MachinesModel model,Pager p);
	
	public List<Object> findByCondition(Pager p); 
	
	public Machines findById(java.lang.String id) ;
	
	public void update(Machines instance);
	
	public void save(Machines transientInstance) ;

	public void delete(Machines persistentInstance) ;
	
	public List<Options> findByCode(String code);
	
	public List<UserMachineType> doListMachineTypeName(String userName);
	
	public Machines findByCondition(String compCode,String deviceCode,String deviceRandom);
	
	public Machines findByCondition(String deviceCodes);
	
	public ResultUtil getListMachines(String compCode,String userName,List<String[]> list);
	
	public void insertBatch(List<Machines> list);
	//批次列表
	public List<Object> findByBatch();
}
